package com.ky.pro.java.rpc.hd.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 资产冻结表
 * </p>
 *
 * @author Kevin Dummy
 * @since 2022-01-02
 */
@Getter
@Setter
@Builder
@TableName("t_frozen_assets")
@ApiModel(value = "FrozenAssets对象", description = "资产冻结表")
public class FrozenAssets implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("账户ID")
    private Long accountId;

    @ApiModelProperty("币种, 0 - 人民币, 1 - 美元")
    private Integer currency;

    @ApiModelProperty("冻结金额，元*100+角*10+分")
    private Long amount;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("版本号")
    private Integer version;

    @ApiModelProperty("删除标识, 0 - 未删除, 1 - 已删除")
    private Integer delStatus;


}
